<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

use builder\base\BaseBundle;
use yii\helpers\Html;

BaseBundle::register($this);

/** @var \yii\web\View $this view组件实例 */
/** @var string $content 主体内容 */
/** @var string $uiTheme UI主题 */

$uiTheme = !empty($this->params['uiTheme']) ? $this->params['uiTheme'] : 'ym2-theme-pink';
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" class="h-100">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php $this->registerCsrfMetaTags() ?>
    <?= \builder\helper\H5::appMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>

    <!--Brand-->
    <script>
        console.log(`
%c  ██╗   ██╗███╗   ███╗██████╗     ██████╗     %c
%c  ╚██╗ ██╔╝████╗ ████║╚════██╗   ██╔═████╗    %c
%c   ╚████╔╝ ██╔████╔██║ █████╔╝   ██║██╔██║    %c
%c    ╚██╔╝  ██║╚██╔╝██║██╔═══╝    ████╔╝██║    %c
%c     ██║   ██║ ╚═╝ ██║███████╗██╗╚██████╔╝    %c
%c     ╚═╝   ╚═╝     ╚═╝╚══════╝╚═╝ ╚═════╝     %c
`,
            "color:#0081ff;background:rgba(0,0,0,.01);",
            "color:#000000;background:rgba(0,0,0,0);",
            "color:#077cef;background:rgba(0,0,0,.02);",
            "color:#000000;background:rgba(0,0,0,0);",
            "color:#0d76dd;background:rgba(0,0,0,.03);",
            "color:#000000;background:rgba(0,0,0,0);",
            "color:#1775d1;background:rgba(0,0,0,.03);",
            "color:#000000;background:rgba(0,0,0,0);",
            "color:#1e71c3;background:rgba(0,0,0,.02);",
            "color:#000000;background:rgba(0,0,0,0);",
            "color:#246bb1;background:rgba(0,0,0,.01);",
            "color:#000000;background:rgba(0,0,0,0);",
        );
    </script>
</head>
<body class="d-flex flex-column h-100 <?= $uiTheme ?>" ng-cloak ng-app="ym2.app">
<?php $this->beginBody() ?>

<main role="main">
    <?= $content ?>
</main>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage();
